package com.gzu.emr.service.impl;

import com.gzu.emr.dto.Diagnosis;
import com.gzu.emr.mapper.DiagnosisMapper;
import com.gzu.emr.service.DiagnosisService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class DiagnosisServiceImpl implements DiagnosisService {

    @Resource
    private DiagnosisMapper diagnosisMapper;

    @Override
    public int insertDiagnosis(Diagnosis diagnosis) {

        int row = diagnosisMapper.insertDiagnosis(diagnosis);
        return row;
    }
}
